package common.mq.persistence.service;

public class Person {
	private int id;
	private String name;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Person(int id, String name) {
		super();
		this.id = id;
		this.name = name;
	}
	
	public boolean equals(Object obj){
		if(obj == null)
			return false;
		Person p = (Person)obj;
		if(this.id==p.id && this.name.equals(p.getName())){
			return true;
		}
		return false;
		
	}
}
